import request from "@/utils/request";
//获取全部权限列表数据
export const sysPermission = () => {
  return request({
    url: "/sys/permission",
  });
};
//新增权限点
export const sysPermissionPost = (data) => {
  return request({
    url: "/sys/permission",
    method: "POST",
    data,
  });
};
//编辑权限点
export const sysPermissionPut = (data) => {
  return request({
    url: "/sys/permission/" + data.id,
    method: "PUT",
    data,
  });
};
//删除权限点
export const sysPermissionDelete = (id) => {
  return request({
    url: "/sys/permission/" + id,
    method: "DELETE",
  });
};
